import service from '../request'

//  查询公众号信息列表
export function listWechatAccounts(query: any) {
  return service({
    url: '/system/WechatAccounts/list',
    method: 'get',
    params: query,
  })
}

// 根据app_id获取公众号信息
export function getWechatAccounts(appId: string) {
  return service({
    url: '/system/WechatAccounts/appId/' + appId,
    method: 'get',
  })
}

// 查询用户公众号信息关联详细
export function getUserWechatAccounts(openId: string) {
  return service({
    url: '/system/UserWechatAccounts/open/' + openId,
    method: 'get',
  })
}


